
package com.xoa.service.nccloud.impl;
import com.xoa.dao.ncclound.NccHrorgMapper;
import com.xoa.model.nccloud.NccHrorg;
import com.xoa.service.nccloud.NccHrorgService;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class NccHrorgServiceImpl implements NccHrorgService {

    @Resource
    private NccHrorgMapper nccHrorgMapper;

    public NccHrorg getNccHrorgById(Long id)throws Exception{
        return nccHrorgMapper.getNccHrorgById(id);
    }

    public List<NccHrorg>	getNccHrorgListByMap(Map<String,Object> param)throws Exception{
        return nccHrorgMapper.getNccHrorgListByMap(param);
    }

    public Integer getNccHrorgCountByMap(Map<String,Object> param)throws Exception{
        return nccHrorgMapper.getNccHrorgCountByMap(param);
    }

    public Integer itriptxAddNccHrorg(NccHrorg nccHrorg)throws Exception{

            return nccHrorgMapper.insertNccHrorg(nccHrorg);
    }

    public Integer itriptxModifyNccHrorg(NccHrorg nccHrorg)throws Exception{

        return nccHrorgMapper.updateNccHrorg(nccHrorg);
    }

    public Integer itriptxDeleteNccHrorgById(Long id)throws Exception{
        return nccHrorgMapper.deleteNccHrorgById(id);
    }


}
